package imoocvideodev.service;

import imoocvideodev.pojo.Users;
import imoocvideodev.common.result.IMoocJSONResult;
import imoocvideodev.pojo.UsersReport;

/**
 * @Author: Redi
 * @Date: 2021/1/31 12:05
 * @Description: 用户服务类
 */
public interface UsersService {

    boolean checkUserExist(String username);

    IMoocJSONResult saveUser(Users users);

    Users login(Users users) throws Exception;

    IMoocJSONResult update(Users users);

    Users selectUsersById(String usersId);

    Boolean isUserLikeVideo(String loginUserId, String videoId);

    Boolean checkIfFollow(String userId, String fanId);

    IMoocJSONResult beFans(String userId, String fanId);

    IMoocJSONResult dontBeFans(String userId, String fanId);

    IMoocJSONResult reportUsers(UsersReport usersReport);

}
